package com.zte.warehouse.dao;

import com.zte.warehouse.model.SingleWarehouse;
import com.zte.warehouse.model.Warehouse;
import com.zte.warehouse.model.WarehouseCondition;
import com.zte.warehouse.model.getUserMSG;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface IWarehouseDao {

    /**
     * query
     * @param conn
     * @return
     */
    public List<Warehouse> queryWarehouseListByCondition(WarehouseCondition conn);

    public List<SingleWarehouse> queryWarehouseList();//加载仓库列表数据

    public Warehouse queryWarehouseByCondition(WarehouseCondition conn);

    public int addWarehouse(SingleWarehouse singleWarehouse);

    public int updateWarehouse(SingleWarehouse warehouse);

    public int deleteWarehouseById(String id);

    public List<getUserMSG> getWarehouseUsre();

}
